package com.limh.gobang.service.utils

import java.net.Socket

/**
 * @function
 * @author limh
 * @date 2018/4/27 16:14
 */
class HttpContext {
    var requestHeader: HashMap<String, String>? = null
    var underlySocket: Socket? = null

    constructor() {
        requestHeader = HashMap()
    }

    fun addRequestHeader(key: String, value: String) {
        requestHeader!![key] = value
    }

    fun getRequestHeagerValue(key: String): String {
        return requestHeader!!.getValue(key)
    }
}